	<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/roleRank/list" id="searchForm">
	
	  <div class="col-md-12"> 
	  <div class="row">
	    <div class="col-md-4">
	      <div class="form-group">
	         <label  class="col-md-3 control-label">${_res["roleRank.id"]}</label>
	         <div class="col-md-9">
	            <input type="text" class="form-control" name="customerRoleRank.l_id" placeholder="${_res['roleRank.id']}" value="${paramMap['customerRoleRank.l_id']}"/>
	         </div>
	       </div>
	    </div>
	    
	    <div class="col-md-4">
	      <div class="form-group">
	         <label  class="col-md-3 control-label">${_res["role.categoryName"]}</label>
	         <div class="col-md-9">
	          	 <#dict type="select" id="categoryName" name="customerRoleRank.f_categoryid" table="customer_role_category" filedName="name" filedValue="id" defaultValue="${paramMap['customerRoleRank.f_categoryid']}"/>
	         </div>
	       </div>
	    </div>
	    <div class="col-md-4">
	      <div class="form-group">
	         <label  class="col-md-3 control-label">${_res["category.createDate"]}</label>
	         <div class="col-md-9">
	            <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="customerRoleRank.l_createtime" placeholder="${_res['category.createDate']}" value="${paramMap['customerRoleRank.l_createtime']}"/>
	         </div>
	       </div>
	    </div>
	     
	  </div>
	  
	  <div class="row">
	    <div class="col-md-4">
	         <div class="form-group">
	           <label class="col-md-3 control-label">${_res["category.name"]}</label>
	           <div class="col-md-9">
	               <input type="text" class="form-control" name="customerRoleRank.l_name" placeholder="${_res['category.name']}" value="${paramMap['customerRoleRank.l_name']}"  />
	           </div>
	       </div>
	     </div>
	     
	     <div class="col-md-4">
	      <div class="form-group">
	      	 <label  class="col-md-3 control-label">${_res["roleRank.roleName"]}</label>
	         <div class="col-md-9" id="role">
	          	<%//ajax片段开始
	          		#ajax ajaxRoleList:{%>
					<select name="customerRoleRank.f_roleid" class="form-control help-block m-b-none">
						<%if(isEmpty(roleList)){%>
							<option></option>
						<%}else{	
							for(role in roleList){%>
						<option value="${role.id!}">${role.i18nname!}</option>
						<%}}%>
					</select>
				<%}
				//ajax片段结束
				%>
	         </div>
	       </div>
	     </div>
	    
	    <div class="col-md-4">
	      <div class="form-group">
	         <label  class="col-md-3 control-label">${_res["category.updateDate"]}</label>
	         <div class="col-md-9">
	          	 <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="customerRoleRank.l_updatetime" placeholder="${_res['category.updateDate']}" value="${paramMap['customerRoleRank.l_updatetime']}"/>
	         </div>
	       </div>
	    </div>
	  </div>
	  
	  <div class="row">
	    <div class="col-md-4">
	      <div class="form-group">
	         <label  class="col-md-3 control-label">${_res["category.nameen"]}</label>
	         <div class="col-md-9">
	          	<input type="text" class="form-control"  name="customerRoleRank.l_nameen" placeholder="${_res['category.nameen']}" value="${paramMap['customerRoleRank.l_nameen']}"/>
	         </div>
	       </div>
	    </div>
	    
	    <div class="col-md-4">
	         <div class="form-group">
	           <div class="col-md-9">
	           </div>
	       </div>
	     </div>
	    
	    <div class="col-md-4">
	        <div class="form-group">
	         <label  class="col-md-3 control-label"></label>
	         <div class="col-md-9">
	           		<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
	          			<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
	          		</button>
	         </div>
	        </div>
	    </div>
	  </div>
	 </div>
	</form>
 </div>
	
	
	<div id="dataTable" class="row searchLineWrap">
		<div class="float-e-margins">
			<button type="button" class="btn btn-primary pull-left" onclick="ajaxContent('/admin/toUrl?toUrl=/realty/customer/roleRank/add.html');">
				${_res["roleRank.add"]}
			</button> 
		</div>
	<table class="table table-bordered table-hover dataTables-example">
	    <thead>
	        <tr>
	            <th>${_res["roleRank.id"]}</th>
	            <th>${_res["category.name"]}</th>
	            <th>${_res["category.nameen"]}</th>
	            <th>${_res["role.categoryName"]}</th>
	            <th>${_res["roleRank.roleName"]}</th>
	            <th>${_res["category.createDate"]}</th>
	            <th>${_res["category.updateDate"]}</th>
	            <th>${_res["system.operator"]}</th>
	          </tr>
	    </thead>
	    <tbody>
	        <%for (roleRank in customerRoleRankList!){%>
	         <tr class="gradeC">
	            <td>${roleRank.id!}</td> 
	            <td>${roleRank.name!}</td>
	            <td>${roleRank.nameen!}</td>
	            <td><#dict type="lable" table="customer_role_category" filedName="name" filedValue="id" value="${roleRank.categoryid!}" /></td>
	            <td><#dict type="lable" table="customer_role" filedName="name" filedValue="id" value="${roleRank.roleid!}" /></td>
	            <td>${roleRank.createtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
	            <td>${roleRank.updatetime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
	            <td>
	            	<% if(hasPrivilegeUrl("roleRankInput")){ %>
	               <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/roleRank/input/${roleRank.id!}')">${_res["system.edit"]}</button>
	               <%}if(hasPrivilegeUrl("roleRankDelete")){%>
	               <button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/admin/roleRank/delete/${roleRank.id!}')">${_res["system.delete"]}</button>
	            	<%}%>
	            	<%if(hasPrivilegeUrl("frontPrivlegeList")){%>
	            	<button type="button" class="btn btn-sm btn-link" data-toggle="modal" data-target="#myModal" data-whatever="${roleRank.id!}">${_res["systemManage.resignPrivilege"]}</button>
	            	<%}%>
	            </td>
	       </tr>
	       <%}%>
	    </tbody> 
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm"/>
	</div>
	<#nav />
	</div>
	
	
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModaLabel">
	<%include("resignPrivilege.html"){}%>
</div>	
	
<script type="text/javascript">
	
	$(function(){
		$("#categoryName").on('change',function(){
			var categoryId=$(this).val();
			var data = {toUrl:'/realty/customer/roleRank/list.html#ajaxRoleList',categoryId:categoryId};
			ajaxDiv('role', '/admin/roleRank/getrole', data);
		});
	});

</script>
